package com.killer_jin.core.common.exception;


/**
 * BaseException 添加了一个错误编码，其它自定义的异常应当继承该类
 *
 * @version 1.0
 * @author jiayu 2019-06-19
 */
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = -997101946070796354L;

    /**
     * 错误编码
     */
    protected String code;

    public BaseException() {}

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String code, String message) {
        super(message);
        this.code = code;
    }
}
